﻿<?php
require_once('../../../config.php');
require_once($CFG->libdir . '/adminlib.php');
require_once($CFG->dirroot . '/local/myplugin/lib.php');
require_once($CFG->dirroot . "/local/myplugin/forms.php");
define('AJAX_SCRIPT', true);
global $DB;

$id = required_param('id', PARAM_TEXT);

/* Ket noi den file javascript - module.js */
$PAGE->requires->js_init_call('M.local_myplugin');	
$mycss =  $CFG->wwwroot.'/local/myplugin/css/mycss.css';
 echo '<link rel="stylesheet" href="'.$mycss.'" type="text/css" media="screen" />';
/* Viet doan code cua ban o day */


$mform = new form_view_block_knowledge(null, array('id'=>$id));

if ($fromform = $mform->get_data()) 
{	
	
	
	//close colorbox
	echo "<script>parent.$.fn.colorbox.close(); </script>";
}


$mform->display();
/*------Ket thuc doan code cua ban-------*/

